<?php
    session_start();
    $name=$_POST['name'];
    $email=$_POST['email'];
    $message=$_POST['message'];

    $message=str_replace("\n", "<br />", $message);
    $dt_tm = date("Y-m-d h:i:s");
    include("../inc/constants.inc.php");
    $from = $email;
    $to   = CONTACT_US_EMAIL;
    $subject = "Kunuki - Contact us email ";
    //$insert="insert into  ".DB_NAME.".cntct_us (USR_NMBR, NM, ML, MSSG, DT_TM) values('$usr_nmbr', '$name', '$email', '$message', '$dt_tm') ";
    //if($records=$dbo->query($insert))
		$headers = "MIME-Version: 1.0" . "\r\n";
		$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
		$headers .= 'From: User <'.$from.'>'. "\r\n";

		if(mail($to,$subject,$message,$headers))
    echo "true";
    else
    echo "false";
    
?>